package com.zjl;
import java.util.Calendar;
import java.util.Date;

public class PersonBean {
private int id;
private String nameString;
private String sexString;
private String typeString;//英雄位置
private Date addTimeDate;

public int getYear() {
	Calendar calendar=Calendar.getInstance();
	int year=calendar.get(Calendar.YEAR);
	calendar.setTime(addTimeDate);
	int beforeYear=calendar.get(Calendar.YEAR);
	return year-beforeYear;
}

public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getNameString() {
	return nameString;
}
public void setNameString(String nameString) {
	this.nameString = nameString;
}
public String getSexString() {
	return sexString;
}
public void setSexString(String sexString) {
	this.sexString = sexString;
}
public String getTypeString() {
	return typeString;
}
public void setTypeString(String typeString) {
	this.typeString = typeString;
}
public Date getAddTimeDate() {
	return addTimeDate;
}
public void setAddTimeDate(Date addTimeDate) {
	this.addTimeDate = addTimeDate;
}

public PersonBean(int id, String nameString, String sexString, String typeString, Date addTimeDate) {
	super();
	this.id = id;
	this.nameString = nameString;
	this.sexString = sexString;
	this.typeString = typeString;
	this.addTimeDate = addTimeDate;
}

public PersonBean() {
	super();
}

@Override
public String toString() {
	return "PersonBean [id=" + id + ", nameString=" + nameString + ", sexString=" + sexString + ", typeString="
			+ typeString + ", addTimeDate=" + addTimeDate + "]";
}

	
	
	
}
